/****************************************************
          File Name:dir.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon Dec  8 19:23:51 2014
*****************************************************/

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>      /* rename () and etc */
#include <errno.h>
#include <fcntl.h>
#include <string.h>     /* strcmp () */
#include <sys/stat.h>   /* mkdir() and etc */
#include <dirent.h>     /* opendir() , dfopendir() and etc */

void err(char *fun)
{
    perror(fun);
    exit(errno);
}
